<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>All Users</title>
</head>
<body>
	<table>
		<thead>
			<tr>
				<th>行序号</th>
				<th>昵称</th>
				<th>用户名</th>
				<th>电话</th>
				<th>邮箱</th>
				<th>角色</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody th:remove="all-but-first">
			<tr th:each="user : ${users}">
				<td th:text="${userStat.count}"></td>
				<td th:text="${user.nickname}"></td>
				<td th:text="${user.username}"></td>
				<td th:text="${user.phone}"></td>
				<td th:text="${user.email}"></td>
				<td th:text="${user.role.name}"></td>
				<td><a th:href="@{'/viewUser?id='+${user.id}}" th:text="查看"></a>
					<a th:href="@{'/editUser?id='+${user.id}}" th:text="编辑"></a> <a
					th:href="@{'/deleteUser?id='+${user.id}}" th:text="删除"></a></td>
			</tr>
		</tbody>
	</table>
	<a th:href="@{/newUser}">添加用户</a>
</body>
</html>